/**   
* @Title: DownloadFileDto.java
* @Package org.xaoyaoyao.spider.dto
* @Description: TODO
* @author xaoyaoyao
* @date Jan 25, 2019 1:47:03 PM
* @version V1.0   
*/
package org.xaoyaoyao.spider.dto;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

import lombok.Data;

/**
 * @ClassName: DownloadFileDto
 * @Description: TODO
 * @author xaoyaoyao
 * @date Jan 25, 2019 1:47:03 PM
 * 
 */
@Data
public class DownloadFileDto implements Serializable {

	/**
	 * @Fields serialVersionUID : TODO
	 */
	private static final long serialVersionUID = 4085291375296189432L;

	/** 所属于任务 **/
	private Long taskId;

	/** 域 **/
	private String domain;

	/** html文本 **/
	private String htmlTxt;

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

	public static DownloadFileDto parse(String json) {
		return JSON.parseObject(json, DownloadFileDto.class);
	}
}
